#{extends 'main.html' /} #{set title:'My profile' /}

<div class="row-fluid">
	<div class="span5 offset1">
		#{if flash?.error}
		<div class="error">
			<p style="color: #c00">${flash.error}</p>
		</div>
		#{/if} #{if flash?.success}
		<div class="success">
			<p style="color: #5fa022">${flash.success}</p>
		</div>
		#{/if}
		<h3>My information:</h3>
		<table class="table">
			<tr>
				<td><b>Name:</b></td>
				<td>${customer.name}
				<td>
			</tr>
			<tr>
				<td><b>E-mail:</b></td>
				<td>${customer.email}</td>
			</tr>
			<tr>
				<td><b>Change password:</b></td>
				<td>
					<form id="chPass" action="@{Application.changePass}" method="POST"
						accept-charset="${_response_encoding}">
						<div>
							<label for="password">Enter your new password:</label> <input
								type="password" name="password" value="${flash.password}"
								id="password" /> <span class="error">#{error 'password'
								/}</span>
						</div>
						<label for="password2">Enter your new password again:</label>
						<div>
							<input type="password" name="password2"
								value="${flash.password2}" id="password2" /> <span
								class="error">#{error 'password2' /}</span>
						</div>
						<p class="buttons">
							<input type="submit" value="Change password" id="pass"
								class="btn btn-primary btn-medium" />
						</p>
					</form>
				</td>

			</tr>
		</table>

	</div>
	<div class="span4 offset1">
		<h3>Offers today!</h3>
		Check for LeOrange, 30 % off!!
	</div>
</div>